@import '../../scss/variable';
@import '../../scss/mixin';
.headbanner {
  height: 300px;
  background: url('../../images/hosting_banner.jpg') no-repeat center center;
  h1 {
    text-align: center;
    line-height: 300px;
    font-weight: 400;
    color: #fff;
  }
}

.tabmenu {
  text-align: center;
  .tab-nav {
    display: inline-block;
    font-size: 0;
    margin-top: -20px;
    box-shadow: 0 2px 5px 2px rgba(0, 0, 0, .2);
    li {
      display: inline;
      a {
        display: inline-block;
        padding: 16px 60px;
        font-size: 16px;
        color: #474e53;
        background-color: #fff;
        transition: all .25s ease-in-out;
        &:hover {
          color: $theme;
        }
      }
      &.active {
        a {
          color: #fff;
          background-color: $theme;
          font-weight: 600;
        }
      }
    }
  }
}

.featured {
  padding: 50px 0;
  &.bg-color {
    background-color: #F7F8FA;
  }
  .features-title {
    text-align: center;
    margin-bottom: 35px;
  }
  .lead {
    font-size: 16px;
    color: #666;
    text-align: center;
  }
}

.faq-list-group {
  li {
    padding: 20px 0;
    border-top: 1px dotted #CFD8DC;
    &:first-child {
      border-top: none;
    }
    h4 {
      margin-bottom: 10px;
    }
    p {
      padding: 10px 0 10px 20px;
      color: #666;
      text-align: justify;
      border-left: 5px solid #CFD8DC;
    }
  }
}

.row {
  display: flex;
  margin: 40px 0;
  justify-content: space-between;
  .col-4 {
    flex: 0 0 auto;
    width: 340px;
    .circle {
      width: 90px;
      height: 90px;
      float: left;
      margin-right: 10px;
      background-image: url('../../images/cloudhost-icon.jpg');
      background-size: auto 90px;
      @for $i from 1 to 7 {
        $j: $i - 1;
        &.icon-#{$i} {
          background-position: -90px * $j 0;
        }
      }
    }
  }
}

.role-main,
.role-aside {
  box-sizing: border-box;
  float: left;
  .hr-title{
    margin-bottom: 30px;
    padding: 7px 0 7px 20px;
    border-left: 5px solid $theme;
    background-color: #f2f2f2;
  }
}

.role-main {
  width: 75%;
  padding: 0 15px;
}

.role-aside {
  position: sticky;
  top: 0;
  width: 25%;
  padding: 0 15px;
}

.button-group {
  display: flex;
  margin-bottom: 30px;
  .button {
    flex: 1 0 auto;
    background-color: #e0e1e2;
    color: #666;
    text-align: center;
    &:first-child {
      border-radius: 4px 0 0 4px;
    }
    &:last-child {
      border-radius: 0 4px 4px 0;
    }
    &:hover {
      color: #444;
      background-color: #cacbcd;
    }
    &.active {
      color: #fff;
      background-color: $theme;
    }
    &+.button {
      margin-left: -1px;
    }
  }
}

.cloudhost-product-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .ui-card {
    flex: 0 1 auto;
    width: 380px;
    margin-bottom: 20px;
    border-top: 5px solid #263238;
    border-radius: 4px;
    &:hover{
      border-top-color: $theme;
    }
    .card-header{
      padding-bottom: 0;
      .product-name{
        font-size: 20px;
        font-weight: 600;
        small{
          font-size: 12px;
          color: #777;
          font-weight: 400;
        }
      }
    }
    .card-content{
      .list-group {
        border-top: 1px dotted #ccc;
        padding: 20px 20px 0 20px;
        margin-bottom: 15px;
        font-size: 12px;
        dt {
          float: left;
          font-weight: 600;
          margin-bottom: 10px;
        }
        dd {
          padding-left: 50px;
          margin-bottom: 10px;
          white-space: nowrap;
          word-wrap: break-word;
          text-overflow: ellipsis;
        }
      }
      .ui-selection{
        margin-left: 20px;
        margin-right: 20px;
        width: auto;
      }
      .price-col {
        .item {
          display: none;
          font-size: 12px;
          text-align: center;
          &.show {
            display: block;
          }
          span {
            font-size: 14px;
            font-weight: 600;
            color: #F44336;
          }
        }
      }
    }
    .card-footer {
      .button {
        width: 160px;
        margin: auto;
        background-color: transparent;
        border-color: $theme;
        color: $theme;
        &:hover{
          background-color: $theme;
          color: #fff;
        }
      }
    }
  }
}
.config-group{
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  label{
    width: 80px;
    text-align: right;
    font-weight: 600;
    vertical-align: middle;
  }
  .config-input{
    position: relative;
    flex: 0 0 640px;
    padding: 0 30px;
    &.error{
      .warn-label{
        display: block;
      }
    }
    .ui-selection{
      margin-bottom: 0;
    }
    .warn-label{
      display: none;
      position: absolute;
      top: 100%;
      color: #F44336;
      font-size: 12px;
    }
  }
  .label-value{
    width: 100px;
    span{
      position: relative;
      display: inline-block;
      width: 60px;
      height: 20px;
      padding: 5px 10px;
      float: right;
      text-align: center;
      color: #777;
      background-color: #eee;
      border-radius: 0 4px 4px 4px;
      &:before{
        position: absolute;
        top: 0;
        right: 100%;
        content: '';
        border-right: 6px dashed #eee;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
      }
    }
  }
}
.parameter{
  li{
    margin-bottom: 10px;
    font-size: 12px;
    label{
      width: 80px;
      font-weight: 600;
      text-align: right;
      float: left;
    }
    p{
      margin-left: 90px;
    }
  }
}
.price-label{
  margin: 15px 0 5px;
  padding-top: 10px;
  border-top:  1px dotted #ccc;
  label{
    width: 80px;
    line-height: 36px;
    font-weight: 600;
    text-align: right;
    float: left;
  }
  p{
    margin-left: 90px;
    font-size: 24px;
    color: #F44336;
  }
}
.agreement-label{
  margin-bottom: 15px;
  a{
    color: $theme;
  }
  .error-label{
    display: none;
    color: #F44336
  }
  &.error{
    .error-label{
      display: block;
    }
  }
}
.buy-button{
  background-color: $theme;
  border-color: $theme;
  color: #fff;
  &:hover{
    background-color: #fff;
    color: $theme;
  }
}